package com.changgou.user.dao;

import com.changgou.user.pojo.PointLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author kfzhao
 * @version 1.0
 * @interfaceName PointLogMapper
 * @description
 * @date 2022/1/4 0:48
 **/
public interface PointLogMapper extends Mapper<PointLog> {

    /**
     * 根据订单id查询积分日志表
     *
     * @param orderId
     * @return com.changgou.user.pojo.PointLog
     * @throws
     * @description
     * @author kfzhao
     * @date 2022/1/4 0:49
     */
    @Select("select * from tb_point_log where order_id = #{orderId}")
    PointLog findPointLogByOrderId(@Param("orderId") String orderId);
}
